const App = {
    data() {
        return {
            bjdate:{
                year:0,
                month:0,
                day:0,
                hour:0,
                minute:0,
                second:0,
                week:0
            },
            str:[
                "零","一","二","三","四","五","六","七","八","九",
                "十","十一","十二","十三","十四","十五","十六","十七","十八","十九","二十",
                "二十一","二十二","二十三","二十四","二十五","二十六","二十七","二十八","二十九",
                "三十","三十一","三十二","三十三","三十四","三十五","三十六","三十七","三十八","三十九",
                "四十","四十一","四十二","四十三","四十四","四十五","四十六","四十七","四十八","四十九",
                "五十","五十一","五十二","五十三","五十四","五十五","五十六","五十七","五十八","五十九",
            ],
            getDate(){
                let date = new Date();
                return {
                    year:date.getFullYear(),
                    month:date.getMonth()+1,
                    day:date.getDate(),
                    hour:date.getHours(),
                    minute:date.getMinutes(),
                    second:date.getSeconds(),
                    week:date.getDay()
                }
            },
        }
    },
    mounted() {
        this.bjdate = this.getDate();
        setInterval(() => {
            this.bjdate = this.getDate();
        }, 1000);
    },
}
Vue.createApp(App).mount('#app')